const env = process.env.NODE_ENV || "development";

let port, database, mongodbUrl;
let jwt_secret = "qwqasdf#$123$%##*(&&!@#aic"; // 用于jsonwebtoken的加密串
let expiresIn = "4h"; //身份过期时间 4h=4小时

if (env === "development") {
  port = 5000;
  database = {
    host: "localhost",
    database: "koa-test",
    username: "root",
    password: "123456",
    port: "3306",
  };
} else if (env === "production") {
}
module.exports = {
  port,
  database,
  jwt_secret,
  expiresIn,
  mongodbUrl,
};
